﻿using System.Collections;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;

namespace DX.Security
{
    public interface IAuthService
    {
        bool ValidateCredentials(string account, string password);
        IPrincipal FindUser(string account);

        void ChangePassword(string account, string oldpassword, string newpassword);
    }
    public class AuthOption
    {
        public string AuthenticationType { get; set; } = "Kerberos";
        public string RoleType { get; set; } = "role";
        public string NameType { get; set; } = "name";
        public string[] Properties { get; set; }
    }
}
